package com.gaff.emp.core.modules.auth.service;

import com.gaff.emp.core.modules.auth.LoginUserInfo;
import com.gaff.emp.core.modules.auth.form.LoginForm;
import com.gaff.emp.core.modules.auth.form.SsoLoginForm;
import com.gaff.emp.core.modules.auth.form.SsoPasswordForm;

import java.awt.image.BufferedImage;
import java.util.Map;

public interface AuthService {

    BufferedImage getCaptcha(String uuid);

    Map<String, Object> login(LoginForm form);

    void logout(LoginUserInfo userInfo);

    Map<String, Object> ssoLogin(SsoLoginForm form);

    void ssoPassword(LoginUserInfo userInfo, SsoPasswordForm form);

}
